@import "./variable.less";
@import "./iconfont.less";
@import "./markdown.less";
@import "./card.less";

* {
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-family: -apple-system, SF UI Text, Arial, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, WenQuanYi Micro Hei, sans-serif, SimHei, SimSun;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

ul,
ol,
li,
input,
textarea {
  list-style: none;
  outline: none;
  border: none;
  padding: 0;
}

/* 可以设置不同的进入和离开动画 */
/* 设置持续时间和动画函数 */
.slide-fade-enter-active {
  transition: all 0.3s ease;
}
.slide-fade-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active for below version 2.1.8 */ {
  transform: translateX(40px);
  opacity: 0;
}

.slideup-fade-enter-active {
  transition: all 0.3s ease;
}
.slideup-fade-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}
.slideup-fade-enter, .slideup-fade-leave-to
/* .slide-fade-leave-active for below version 2.1.8 */ {
  transform: translateY(40px);
  opacity: 0;
}

.loading-enter-active {
  transition: all 0.2s ease;
}
.loading-leave-active {
  transition: all 0.2s ease;
}
.loading-enter
/* .slide-fade-leave-active for below version 2.1.8 */ {
  transform: translate3d(0, 4px, 0);
  opacity: 0;
}

.loading-leave-to {
  transform: translate3d(0, -4px, 0);
  opacity: 0;
}

.md_img_container {
  text-align: center;
  img[align="center"] {
    display: inline-block;
  }
}

.md_flex_card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .flex-1 {
    flex: 1;
  }
}

.md_toc_list {
  li.md_toc_item {
    list-style: disc;
    // list-style-type: none;
    cursor: pointer;
    color: var(--md-editor-border-color-active);
    position: relative;
    // &::before {
    //   content: "\·";
    //   font-size: 20px;
    //   position: absolute;
    //   left: 0;
    //   top: 50%;
    //   transform: translateY(-50%);
    // }
    &.type_h1 {
      padding-left: 20px;
    }
    &.type_h2 {
      padding-left: 30px;
    }
    &.type_h3 {
      padding-left: 40px;
    }
    &.type_h4 {
      padding-left: 50px;
    }
    &.type_h5 {
      padding-left: 60px;
    }
    &.type_h6 {
      padding-left: 70px;
    }
  }
}

.relative {
  position: relative;
}

a.md_call_user {
  color: var(--md-editor-text-color-active) !important;
  &[href] {
    color: var(--md-editor-border-color-active) !important;
    cursor: pointer;
    @media (any-hover: hover) {
      &:hover {
        color: var(--md-editor-border-color-active) !important;
        opacity: 0.8;
      }
    }
  }
}
